package com.ktjy.service;

import com.ktjy.dao.PetDao;
import com.ktjy.entity.Pet;
import org.springframework.beans.factory.annotation.Autowired;

public class PetServiceImpl implements PetService {
    @Autowired
    PetDao petDao;

    public void setPetDao(PetDao petDao) {
        this.petDao = petDao;
    }

    @Override
    public boolean save(Pet pet) {
        return petDao.insert(pet)>0;
    }
}
